<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="https://appx/web-view.min.js"></script>
    <script>
        if (navigator.userAgent.indexOf('AliApp') > -1) {
            document.writeln('<script src="https://appx/web-view.min.js"' + '>' + '<' + '/' + 'script>');
        }
    </script>
    <script>
        // my.navigateTo({url: '../get-user-info/get-user-info'});
        (function () {
            my.navigateBack()
            // 网页向小程序 postMessage 消息
            my.postMessage({name:"测试web-view"});
        })();
    </script>
</head>
<body>
<div> 按钮测试</div>
</body>
</html>